package com.wxzz.elearing.evaluation.entity;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 工厂体检/星级认证 答题记录
 * </p>
 *
 * @author
 * @since 2021-04-19
 */
@Data
@ApiModel(value = "BusinessCategoryRuleHistory对象", description = "工厂体检/星级认证 答题记录")
public class BusinessCategoryRuleHistory extends BaseEntity {

    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    @ApiModelProperty(value = "行业id")
    private Long businessCategoryId;

    @ApiModelProperty(value = "体检人")
    private String wxUserRealName;

    @ApiModelProperty(value = "星级")
    private Integer startLevel = 0;

    @ApiModelProperty(value = "答题数量")
    private Integer answerNum;

    @ApiModelProperty(value = "总分")
    private BigDecimal allScore;

    @ApiModelProperty(value = "微信用户id")
    private Long wxUserId;

    @ApiModelProperty(value = "工厂体检/星级测评id")
    private Long BusinessCategoryRuleId;

    @ApiModelProperty(value = "工厂体检/星级认证标题")
    private String ruleName;

    @ApiModelProperty(value = "0-工厂体检 1-星级认证")
    private Integer type;

    @ApiModelProperty(value = "分组json")
    private String businessCategorysJson;

    @ApiModelProperty(value = "综合能力建议")
    private String suggest;

    @ApiModelProperty(value = "企业id")
    private Long enterpriseId;

    @ApiModelProperty(value = "部门id")
    private Long enterpriseOrganizationId;

    @ApiModelProperty(value = "头像")
    private String icon;

    @ApiModelProperty(value = "星级描述")
    private String ruleDescribe;

    @ApiModelProperty(value = "证书路径")
    private String credentialUrl;

    @ApiModelProperty(value = "手机号")
    private String phone;

//    @ApiModelProperty(value = "证书编号")
//    private String credentialCode;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门名称")
    private String organizationName;

    @TableField(exist = false)
    @ApiModelProperty(value = "测评题目记录")
    private List<TopicHistory> topicHistoryList;

    @TableField(exist = false)
    @ApiModelProperty(value = "分组")
    private List<BusinessCategory> businessCategorys;

    @TableField(exist = false)
    @ApiModelProperty(value = "图表名")
    private List<String> businessNames;

    @TableField(exist = false)
    @ApiModelProperty(value = "图表百分比")
    private List<BigDecimal> businessCategoryPercentums;

}
